﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HRM.DAL.DAO;
using HRM.DAL.Gateway;

namespace HRM.BLL
{
    public class AttendanceManager
    {
        AttendanceGateway gateway = new AttendanceGateway();
        public bool SaveAttendance(string path)
        {
            return gateway.SaveAttendance(path);
        }

        public bool UpdateStatus(int id, string status)
        {
            return gateway.UpdateStatus(id, status);
        }
        public bool AddComment(int id, string comment)
        {
            return gateway.AddComment(id, comment);
        }
        public bool ClearAttendanceInfo()
        {
            return gateway.ClearAttendanceInfo();
        }
        public List<Attendance> GetEmployeeAttendanceInfo(Code code)
        {
            return gateway.GetEmployeeAttendanceInfo(code);
        } 
    }
}